package what.basic.swingcommon;
import java.awt.*;
import javax.swing.*;

import what.basic.basiccomponent.*;
public class swingicon {
	public void icon1(){
		JFrame f=new Jframe().jframe("border test", 400, 300, true);
		JPanel jp=new JPanel();
		f.setContentPane(jp);
		RedLineBorder border=new RedLineBorder();
		jp.setBorder(border);
		ImageIcon ico1=new ImageIcon("e:/1.jpg","picture1");
		ImageIcon ico2=new ImageIcon("e:/1.jpg","picture1");
		ImageIcon ico3=new ImageIcon("e:/1.jpg","picture1");
		ImageIcon ico4=new ImageIcon("e:/1.jpg","picture1");
		ImageIcon ico5=new ImageIcon("e:/1.jpg","picture1");
		JLabel lbl1=new JLabel(ico1);
		JLabel lbl2=new JLabel(ico2);
		JLabel lbl3=new JLabel(ico3);
		JLabel lbl4=new JLabel(ico4);
		JLabel lbl5=new JLabel(ico5);
		lbl1.setBorder(border);
		jp.add(lbl1);
		jp.add(lbl2);
		jp.add(lbl3);
		jp.add(lbl4);
		jp.add(lbl5);
		
	}
	public static void main(String[] args) {
		new swingicon().icon1();

	}

}
